/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.src.uniandes.ecos.tsp.creditscore.algorithm;

import com.src.uniandes.ecos.tsp.creditscore.exception.CreditScoreException;

/**
 *
 * @author AndhyMao
 */
public class LongCreditHistory {

    public double getPointsLongCreditHistory(Integer cliCodigo) throws CreditScoreException {
        double points = 0;
        double pointsProductUsageTime = 0;
        try {
            RulesLongCreditHistory rulesLongCreditHistory = new RulesLongCreditHistory();
            pointsProductUsageTime = rulesLongCreditHistory.getPointsProductUsageTime(cliCodigo);
            points = pointsProductUsageTime;
            System.out.print("LongCreditHistory:getPointsLongCreditHistory:points" + points);
            return points;
        }
        catch (Exception e) {
            throw new CreditScoreException("LongCreditHistory:getPointsLongCreditHistory:" + e.toString());
        }
    }
}
